package com.offices.subscribe.dto.message.musicmessage;


import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.offices.subscribe.dto.message.BaseMessage;
import lombok.Data;

import java.util.Map;

@Data
public class MusicMessage extends BaseMessage {

    @JacksonXmlElementWrapper(localName = "Music")
    private Music music;

    public MusicMessage(Map<String, String> request, Music music) {
        super(request);
        this.setMsgType("music");
        this.music = music;
    }

}
